package com.xd.core.debt.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 原借款信息
 * </p>
 *
 * @author ZCH
 * @since 2025/03/05/18:00
 */
@Data
@Accessors(chain = true)
@Builder
public class OrgBorrowInfo {

    @ApiModelProperty(value = "借款开始日期")
    @JsonFormat(pattern = "yyyy-MM-dd", shape = JsonFormat.Shape.STRING, timezone = "GMT+8")
    private Date outStartTime;

    @ApiModelProperty(value = "借款结束日期")
    @JsonFormat(pattern = "yyyy-MM-dd", shape = JsonFormat.Shape.STRING, timezone = "GMT+8")
    private Date outEndTime;

    @ApiModelProperty(value = "首次还款日")
    @JsonFormat(pattern = "yyyy-MM-dd", shape = JsonFormat.Shape.STRING, timezone = "GMT+8")
    private Date firstRepaymentDate;

    @ApiModelProperty(value = "贷款利率")
    private String rate;

    @ApiModelProperty(value = "申请体现金额")
    private BigDecimal outLoan;

    @ApiModelProperty(value = "本次放款金额")
    private BigDecimal loanAmount;

    @ApiModelProperty(value = "借款用途")
    private String loanPurpose;

    @ApiModelProperty(value = "借款期数")
    private Integer term;

    @ApiModelProperty(value = "还款频率（0--天，1--月，2--周）")
    private String repayFrequency;

    @ApiModelProperty(value = "还款日")
    private String repayDay;

    @ApiModelProperty(value = "前置服务费率（单位：%）")
    private BigDecimal preServiceFeeRate;

    @ApiModelProperty(value = "后置服务费率（单位：%）")
    private BigDecimal postServiceFeeRate;
}
